#include<iostream>

using namespace std;

int func()
{
	//static int n = 1;
	int n = 1;
	n++;
	return n;
}

int& count()
{
	static int n = 11;
	n++;
	return n;
}

int main()
{
	int ret1 = func();
	cout << ret1 << endl;
	printf("ssssssssssssssssss\n");
	cout << ret1 << endl;

	int ret2 = count();
	cout << ret2 << endl;
	printf("ssssssssssssssssss\n");
	cout << ret2 << endl;

	return 0;
}